using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._SpatialStatisticsTools._MeasuringGeographicDistributions
{
    /// <summary>
    /// <para>Linear Directional Mean</para>
    /// <para>Identifies the mean direction, length, and geographic center for a set of lines.</para>
    /// <para>标识一组线的平均方向、长度和地理中心。</para>
    /// </summary>    
    [DisplayName("Linear Directional Mean")]
    public class DirectionalMean : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public DirectionalMean()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_Input_Feature_Class">
        /// <para>Input Feature Class</para>
        /// <para>The feature class containing vectors for which the mean direction will be calculated.</para>
        /// <para>包含将计算其平均方向的向量的要素类。</para>
        /// </param>
        /// <param name="_Output_Feature_Class">
        /// <para>Output Feature Class</para>
        /// <para>A line feature class that will contain the features representing the mean directions of the input feature class.</para>
        /// <para>一个线要素类，该要素类将包含表示输入要素类平均方向的要素。</para>
        /// </param>
        /// <param name="_Orientation_Only">
        /// <para>Orientation Only</para>
        /// <para><xdoc>
        ///   <para>Specifies whether to include direction (From and To nodes) information in the analysis.</para>
        ///   <bulletList>
        ///     <bullet_item>Checked—The From and To node information is ignored.</bullet_item><para/>
        ///     <bullet_item>Unchecked—The From and To nodes are utilized in calculating the mean. This is the default.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定是否在分析中包括方向（“开始”和“到”节点）信息。</para>
        ///   <bulletList>
        ///     <bullet_item>选中 - 忽略“从”和“到”节点信息。</bullet_item><para/>
        ///     <bullet_item>未选中 - “从”和“至”节点用于计算均值。这是默认设置。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// </param>
        public DirectionalMean(object _Input_Feature_Class, object _Output_Feature_Class, _Orientation_Only_value _Orientation_Only)
        {
            this._Input_Feature_Class = _Input_Feature_Class;
            this._Output_Feature_Class = _Output_Feature_Class;
            this._Orientation_Only = _Orientation_Only;
        }
        public override string ToolboxName => "Spatial Statistics Tools";

        public override string ToolName => "Linear Directional Mean";

        public override string CallName => "stats.DirectionalMean";

        public override List<string> AcceptEnvironments => ["MResolution", "MTolerance", "XYResolution", "XYTolerance", "ZResolution", "ZTolerance", "geographicTransformations", "outputCoordinateSystem", "outputMFlag", "outputZFlag", "outputZValue", "qualifiedFieldNames", "scratchWorkspace", "workspace"];

        public override object[] ParameterInfo => [_Input_Feature_Class, _Output_Feature_Class, _Orientation_Only.GetGPValue(), _Case_Field];

        /// <summary>
        /// <para>Input Feature Class</para>
        /// <para>The feature class containing vectors for which the mean direction will be calculated.</para>
        /// <para>包含将计算其平均方向的向量的要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _Input_Feature_Class { get; set; }


        /// <summary>
        /// <para>Output Feature Class</para>
        /// <para>A line feature class that will contain the features representing the mean directions of the input feature class.</para>
        /// <para>一个线要素类，该要素类将包含表示输入要素类平均方向的要素。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _Output_Feature_Class { get; set; }


        /// <summary>
        /// <para>Orientation Only</para>
        /// <para><xdoc>
        ///   <para>Specifies whether to include direction (From and To nodes) information in the analysis.</para>
        ///   <bulletList>
        ///     <bullet_item>Checked—The From and To node information is ignored.</bullet_item><para/>
        ///     <bullet_item>Unchecked—The From and To nodes are utilized in calculating the mean. This is the default.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定是否在分析中包括方向（“开始”和“到”节点）信息。</para>
        ///   <bulletList>
        ///     <bullet_item>选中 - 忽略“从”和“到”节点信息。</bullet_item><para/>
        ///     <bullet_item>未选中 - “从”和“至”节点用于计算均值。这是默认设置。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Orientation Only")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public _Orientation_Only_value _Orientation_Only { get; set; }

        public enum _Orientation_Only_value
        {
            /// <summary>
            /// <para>ORIENTATION_ONLY</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("ORIENTATION_ONLY")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>DIRECTION</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("DIRECTION")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Case Field</para>
        /// <para>Field used to group features for separate directional mean calculations. The case field can be of integer, date, or string type.</para>
        /// <para>用于对要素进行分组以进行单独方向均值计算的字段。case 字段可以是整数、日期或字符串类型。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Case Field")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _Case_Field { get; set; } = null;


        public DirectionalMean SetEnv(object MResolution = null, object MTolerance = null, object XYResolution = null, object XYTolerance = null, object ZResolution = null, object ZTolerance = null, object geographicTransformations = null, object outputCoordinateSystem = null, object outputMFlag = null, object outputZFlag = null, object outputZValue = null, bool? qualifiedFieldNames = null, object scratchWorkspace = null, object workspace = null)
        {
            base.SetEnv(MResolution: MResolution, MTolerance: MTolerance, XYResolution: XYResolution, XYTolerance: XYTolerance, ZResolution: ZResolution, ZTolerance: ZTolerance, geographicTransformations: geographicTransformations, outputCoordinateSystem: outputCoordinateSystem, outputMFlag: outputMFlag, outputZFlag: outputZFlag, outputZValue: outputZValue, qualifiedFieldNames: qualifiedFieldNames, scratchWorkspace: scratchWorkspace, workspace: workspace);
            return this;
        }

    }

}